Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
##What is this change?
This PR upgrades crypto hashing function of this application to make it compatible with the most current version of Node.js
##Why is this change necessary?
The current state of the application will only build with Node versions <=16. These minimal changes update webpack, so it can successfully build and run this application with the latest version(s) of NodeJS - currently 20.2.0.
##Does your change need a Changelog entry?
Yes.
Refactored webpack config file to use most current Node.js crypto hashing function to allow app to build and run with current version(s) of Node.
##Do you need clarification on anything?
No
##Were there any complications while making this change?
No
##Have you reviewed and updated the documentation for this change? Is new documentation required?
No new documentation is required for these changes.
Users can now successfully build the application with both current and deprecated Node versions following the same existing documentation.
##How did you verify this change?
NOTE: Successfully tested with Node 15.14.0, 16.20.1 and 20.2.0 using a locally hosted Sensu Go backend running in a docker container. All elements of frontend react app were properly functioning.
To verify this change, follow these steps:
Verify application does not work with Node 20.2.0
a) Switch to master branch
b) Update local version of nodeJS within 14 - 16 (use NVM or preferred version manager)
c) Attempt to build application (should successfully build and launch)
d) Switch to node version >=17 (preferably 20.2.0 - most current stable release) and attempt to build application(should fail)
Verify application does work with Node 20.2.0
a) Switch to branch upgrade-hashing-function
b) Update local version of nodeJS to 20.2.0 (use NVM or preferred version manager)
c) c) Attempt to build application (should successfully build and launch)